/**
 * Created by Francis.LW on 2017/10/20.
 *
 * 组织关联角色服务接口
 */
import {postRequest, getRequest} from '@/common/request'
import {urls} from './url'

const user2roleApi = urls.user2role


function listRoleSelectd(uid, success, complete) {
  postRequest(user2roleApi.listAllRoleSelectd + uid, {}, {}, success, complete)
}

function saveUser2Role(param, success, complete) {
  postRequest(user2roleApi.saveUser2Role, {}, param, success, complete)
}


export default {
  listRoleSelectd,
  saveUser2Role
}
